import request from "@/utils/request";

export function getUserEntityByEntityId(entityId) {
  return request({
    url: "/resourcevisualization/resource/getUserEntityByEntityId/" + entityId,
    method: "get",
  });
}

export function addUserEntity(data) {
  return request({
    url: "/resourcevisualization/resource/addUserEntity",
    method: "post",
    data,
  });
}

export function updateUserEntityByEntityId(data) {
  return request({
    url: "/resourcevisualization/resource/updateUserEntityByEntityId",
    method: "post",
    data,
  });
}

export function deleteUserEntityByEntityId(data) {
  return request({
    url: "/resourcevisualization/resource/deleteUserEntityByEntityId",
    method: "post",
    data,
  });
}
